package com.cmfi.domain;

import java.util.Objects;

import lombok.Data;

/**
 * A ProductionRts.
 */
@Data
public class ProductionRts {
	//private static final long serialVersionUID = 1L;

    private Long id;
    
    //private Long roleId;//不需要
    
    private String position;//position

	private String vinCode;
    
    private String planId;
    
    private String bomCode;
    
    private Long updateTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

//	public Long getRoleId() {
//		return roleId;
//	}
//
//	public void setRoleId(Long roleId) {
//		this.roleId = roleId;
//	}
	
	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getVinCode() {
		return vinCode;
	}

	public void setVinCode(String vinCode) {
		this.vinCode = vinCode;
	}

	public String getPlanId() {
		return planId;
	}

	public void setPlanId(String planId) {
		this.planId = planId;
	}

	public String getBomCode() {
		return bomCode;
	}

	public void setBomCode(String bomCode) {
		this.bomCode = bomCode;
	}

	public Long getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Long updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public int hashCode() {
		return Objects.hash(bomCode, updateTime, id, planId, position, vinCode);
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ProductionRts other = (ProductionRts) obj;
		return Objects.equals(bomCode, other.bomCode) && Objects.equals(updateTime, other.updateTime)
				&& Objects.equals(id, other.id) && Objects.equals(planId, other.planId)
				&& Objects.equals(position, other.position)
				&& Objects.equals(vinCode, other.vinCode);
	}

	@Override
	public String toString() {
		return "ProductionRts [id=" + id + ", position=" + position + ", vinCode=" + vinCode
				+ ", planId=" + planId + ", bomCode=" + bomCode + ", updateTime=" + updateTime + "]";
	}

}
